import request from '@/utils/request'

// 查询GdAppointment列表
export function listGdAppointment(query) {
    return request({
        url: '/api/v1/gdappointment',
        method: 'get',
        params: query
    })
}

// 查询GdAppointment详细
export function getGdAppointment (ID) {
    return request({
        url: '/api/v1/gdappointment/' + ID,
        method: 'get'
    })
}


// 新增GdAppointment
export function addGdAppointment(data) {
    return request({
        url: '/api/v1/gdappointment',
        method: 'post',
        data: data
    })
}

// 修改GdAppointment
export function updateGdAppointment(data) {
    return request({
        url: '/api/v1/gdappointment/'+data.ID,
        method: 'put',
        data: data
    })
}

// 删除GdAppointment
export function delGdAppointment(data) {
    return request({
        url: '/api/v1/gdappointment',
        method: 'delete',
        data: data
    })
}

